package com.stox.ui.javafx.core.widget.wrapper;

import images.ImagePivot;
import javafx.scene.image.Image;

public class ImageView extends javafx.scene.image.ImageView {
	
	public ImageView() {
		super();
		setSmooth(true);
		setPreserveRatio(true);
	}
	
	public ImageView(Image arg0) {
		super(arg0);
		setSmooth(true);
		setPreserveRatio(true);
	}
	
	public ImageView(String path){
		this(path, 20, 20);
	}
	
	public ImageView(String path, double width, double height){
		super();
		setSmooth(true);
		setPreserveRatio(true);
		setImage(new Image(ImagePivot.class.getResourceAsStream(path), width,height,true,true));
	}
	
}
